package com.yh.ldzl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yh.ldzl.domain.QcDefect;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface QcDefectService {
    IPage<QcDefect> selectQcDefectList(String defect_name,
                                       String index_type,
                                       String defect_level,
                                       int pageNum,
                                       int pageSize);

    List<Map<String, Object>> selectQcDefectType();
    boolean insertQcDefect(QcDefect qcDefect);
    boolean updateQcDefect(QcDefect qcDefect);
    boolean deleteQcDefect(@Param("ids") List<Long> ids);
}
